﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductAnswer.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_ProductAnswer" MasterPageFile="~/Admin/admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
     回答管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
    <a href="Admin_ProductAnswer.aspx">回答列表</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                CssClass="tablelist tableheader overlist" OnRowCommand="gvList_RowCommand">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle Width="30px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="产品名称">
                        <ItemTemplate>
                            <%# Get_Product(DataBinder.Eval(Container.DataItem,"ProductID")).ProductName%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="AnswerContent" HeaderText="回答内容" />
                    <asp:TemplateField HeaderText="用户">
                        <ItemTemplate>
                            <%# Get_User(DataBinder.Eval(Container.DataItem, "MemberID")).UserName%>
                        </ItemTemplate>
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"Passed").ToString()=="1"?"<font color=green>通过</font>":"<font color=red>未通过</font>"%>
                        </ItemTemplate>
                        <ItemStyle Width="60px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="GetIP" HeaderText="IP">
                        <ItemStyle Width="120px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Bind("ID")%>'
                                CommandName="passed">通过</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Bind("ID")%>'
                                CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%">
            </webdiyer:AspNetPager>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="5" cellspacing="1" class="tablelist tableheader">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="回答"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;"></td>
                    <td></td>
                </tr>
                <tr>
                    <td style="width: 15%;">&nbsp;
                    </td>
                    <td>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">&nbsp;
                    </td>
                    <td>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">&nbsp;
                    </td>
                    <td>&nbsp;
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
